package com.wchat.bean.model.body;

import com.wchat.bean.model.enums.ChatTypeEm;
import com.wchat.bean.model.enums.HeaderTypeEm;
import com.wchat.bean.model.enums.MsgContentTypeEm;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @author : willian fu
 * @date : 2021/8/30
 */
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
public class ChatMsgBody {

    private String msgId;

    //消息类型  SINGLE/GROUP
    private ChatTypeEm type;

    private Integer userId;

    private Integer groupId;

    private Message message;

    private Long time;

    @Data
    @Builder
    @AllArgsConstructor
    @NoArgsConstructor
    public static class Message {

        private MsgContentTypeEm type;

        private String content;
    }


}
